import request from '@/utils/request'

// 获取小说分类
export function getBookType(data?: { timestamp: string; sign: string }) {
  return request({
    url: '/common/getBookType',
    method: 'post',
    data
  })
}

// 发送验证码
export function sendMailCode(data: { email: string; type?: string }) {
  return request({
    url: '/common/sendMailCode',
    method: 'post',
    data
  })
}

// 验证验证码
export function checkMailCode(data: { email: string; code: string; type?: string }) {
  return request({
    url: '/common/checkMailCode',
    method: 'post',
    data
  })
}

// 获取app最新下载地址
export function getDownloadUrl() {
  return request({
    url: '/getDownloadUrl',
    method: 'post'
  })
}
